package com.wushijie.controller;

import com.wushijie.service.HelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @DubboReference(version = "1.0.0")
    private HelloService helloService;
    @GetMapping("/hello")
    public String hello(String name) {
        return helloService.hello(name);
    }
}
